// use(两个参数)
axios.interceptors.response.use(res => {
    console.log(res);
    if(res.data
        && (typeof res.data == 'string') && res.data.indexOf("登 录")!=-1){
        window.parent.location.href = "/login.html";
    }
    return res
}, err => {
    console.log(err);
    window.location.href = "/error.html";
})
